package com.feiyun.exception;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * Function Desc:
 *
 * @author yan
 * @since 2023/3/20 22:41
 */
@AllArgsConstructor
@Getter
public enum ExceptionTypeEnum {
    DEFAULT_EXCEPTION_TYPE(1001, "Default Exception Type"),
    FILE_EXCEPTION_TYPE(1002, "File Exception Type"),
    TOKEN_EXCEPTION_TYPE(1003, "Token Exception Type"),
    SELECT_TIME_OVER_EXCEPTION_TYPE(1004,"查询次数已经用完");

    private final int typeNum;

    private final String description;

    @Override
    public String toString() {
        return typeNum + "[" + description + "]";
    }
}
